﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Twodi.Aspect.Args
{
    public class DefaultChangedEventArgs<T> : EventArgs
    {
        /// <summary>
        /// Valor anterior.
        /// </summary>
        public T PreviousValue { get; protected set; }

        /// <summary>
        /// Valor atual.
        /// </summary>
        public T ActualValue { get; protected set; }

        /// <summary>
        /// Construtor default.
        /// </summary>
        /// <param name="previousValue">Valor anterior.</param>
        /// <param name="actualValue">Valor atual.</param>
        public DefaultChangedEventArgs(T previousValue, T actualValue)
        {
            this.PreviousValue = previousValue;
            this.ActualValue = actualValue;
        }
    }
}
